package com.hailong.zyt.service;

import com.hailong.zyt.beans.Teacher;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hailong
 * @since 2021-05-17
 */
public interface TeacherService extends IService<Teacher> {

    //添加教师账号
    boolean addTeacher(Teacher newTeacher);

    //查询我的课程数量
    Integer getCourseCount(Long teaId);

    //查询我的学生数量
    Integer getStudentCount(Long teaId);

    //我发布的作业学生完成情况
    String getHWFinishRate(Long teaId);

    //登录
    Teacher login(Teacher user);
}
